home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 7684 / 7684.xpi / chrome / firefm.jar / content / fmBrowserOverlay.xul < prev    next >
Extensible Markup Language  |  2009-09-14  |  27KB  |  530 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.   - Copyright (c) 2008, Jose Enrique Bolanos, Jorge Villalobos
  5.   - All rights reserved.
  6.   -
  7.   - Redistribution and use in source and binary forms, with or without
  8.   - modification, are permitted provided that the following conditions are met:
  9.   -
  10.   -  * Redistributions of source code must retain the above copyright notice,
  11.   -    this list of conditions and the following disclaimer.
  12.   -  * Redistributions in binary form must reproduce the above copyright notice,
  13.   -    this list of conditions and the following disclaimer in the documentation
  14.   -    and/or other materials provided with the distribution.
  15.   -  * Neither the name of Jose Enrique Bolanos, Jorge Villalobos nor the names
  16.   -    of its contributors may be used to endorse or promote products derived
  17.   -    from this software without specific prior written permission.
  18.   -
  19.   - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20.   - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21.   - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22.   - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  23.   - OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24.   - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  25.   - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26.   - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27.   - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  28.   - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29.   - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30.   -->
  31.  
  32. <?xml-stylesheet type="text/css" href="chrome://global/skin/" ?>
  33. <?xml-stylesheet type="text/css"
  34.   href="chrome://firefm/skin/fmBrowserOverlay.css" ?>
  35. <?xml-stylesheet type="text/css" href="chrome://firefm-os/skin/fmToolbar.css" ?>
  36. <?xml-stylesheet type="text/css" href="chrome://firefm/content/bindings.css" ?>
  37.  
  38. <!DOCTYPE overlay [
  39.   <!ENTITY % overlayDTD SYSTEM "chrome://firefm/locale/fmBrowserOverlay.dtd" >
  40.   %overlayDTD;
  41.   <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  42.   %browserDTD;
  43. ]>
  44.  
  45. <overlay id="firefm-browser-overlay"
  46.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  47.  
  48.   <script type="application/x-javascript"
  49.     src="chrome://firefm/content/fmBrowserOverlay.js" />
  50.   <script type="application/x-javascript"
  51.     src="chrome://firefm/content/fmUIState.js" />
  52.   <script type="application/x-javascript"
  53.     src="chrome://firefm/content/fmFeeds.js" />
  54.  
  55.   <menupopup id="menu_ToolsPopup">
  56.     <menu id="firefm-menu" insertafter="javascriptConsole,devToolsSeparator"
  57.       label="&firefm.menu.label;" accesskey="&firefm.menu.accesskey;"
  58.       image="chrome://firefm/skin/logo16.png">
  59.       <menupopup>
  60.         <menuitem id="firefm-home-menu" command="firefm-home-cmd" />
  61.         <menuitem id="firefm-login-logout-menu"
  62.           command="firefm-login-logout-cmd" />
  63.         <menuseparator />
  64.         <menu id="firefm-menu-now-playing" label="&firefm.nowPlaying.label;"
  65.           accesskey="&firefm.nowPlaying.accesskey;">
  66.           <menupopup>
  67.             <menuitem id="firefm-menu-playing-info"
  68.               class="menuitem-iconic firefm-menuitem-iconic" disabled="true" />
  69.             <menuitem id="firefm-menu-playing-time-left" disabled="true" />
  70.             <menuseparator />
  71.             <!--<menuitem command="firefm-share-cmd"
  72.               accesskey="&firefm.share.accesskey;" />-->
  73.             <menuitem command="firefm-tag-cmd"
  74.               accesskey="&firefm.tag.accesskey;" />
  75.             <menuitem command="firefm-love-cmd"
  76.               accesskey="&firefm.love.accesskey;" />
  77.             <menuitem command="firefm-ban-cmd"
  78.               accesskey="&firefm.ban.accesskey;" />
  79.             <menuseparator />
  80.             <menuitem id="firefm-menu-playing-track"
  81.               label="&firefm.nowPlaying.track.label;"
  82.               accesskey="&firefm.nowPlaying.track.accesskey;"
  83.               observes="firefm-open-track-page-broadcaster" />
  84.             <menuitem id="firefm-menu-playing-artist"
  85.               label="&firefm.nowPlaying.artist.label;"
  86.               accesskey="&firefm.nowPlaying.artist.accesskey;"
  87.               observes="firefm-open-track-page-broadcaster" />
  88.             <menuitem id="firefm-menu-playing-album"
  89.               label="&firefm.nowPlaying.album.label;"
  90.               accesskey="&firefm.nowPlaying.album.accesskey;"
  91.               observes="firefm-open-track-page-broadcaster" />
  92.             <menuseparator />
  93.             <menuitem id="firefm-menu-playing-free"
  94.               label="&firefm.nowPlaying.downloadFree.label;"
  95.               accesskey="&firefm.nowPlaying.downloadFree.accesskey;"
  96.               observes="firefm-open-track-page-broadcaster" />
  97.             <menuseparator />
  98.             <menuitem command="firefm-video-cmd"
  99.               accesskey="&firefm.video.accesskey;" />
  100.           </menupopup>
  101.         </menu>
  102.         <menuseparator />
  103.         <menu label="&firefm.station.label;"
  104.           accesskey="&firefm.station.accesskey;"
  105.           observes="firefm-logged-in-broadcaster">
  106.           <menupopup>
  107.             <menuitem command="firefm-start-station-cmd" />
  108.             <menu command="firefm-recent-station-cmd">
  109.               <menupopup />
  110.             </menu>
  111.             <menuseparator />
  112.             <menu label="&firefm.myStations.label;"
  113.               accesskey="&firefm.myStations.accesskey;">
  114.               <menupopup>
  115.                 <menuitem label="&firefm.myLibrary.label;"
  116.                   accesskey="&firefm.myLibrary.accesskey;"
  117.                   oncommand=
  118.                     "FireFMChrome.BrowserOverlay.startMyLibrary(event);" />
  119.                 <menuitem label="&firefm.recommendations.label;"
  120.                   accesskey="&firefm.recommendations.accesskey;"
  121.                   oncommand=
  122.                     "FireFMChrome.BrowserOverlay.startRecommendations(event);" />
  123.                 <menuitem label="&firefm.neighborhood.label;"
  124.                   accesskey="&firefm.neighborhood.accesskey;"
  125.                   oncommand=
  126.                     "FireFMChrome.BrowserOverlay.startNeighborhood(event);" />
  127.                 <menuitem label="&firefm.lovedTracks.label;"
  128.                   accesskey="&firefm.lovedTracks.accesskey;"
  129.                   oncommand=
  130.                     "FireFMChrome.BrowserOverlay.startLovedTracks(event);" />
  131.               </menupopup>
  132.             </menu>
  133.             <menuseparator />
  134.             <menu id="firefm-mm-station-similar-artists"
  135.               label="&firefm.similarArtists.label;"
  136.               accesskey="&firefm.similarArtists.accesskey;"
  137.               oncommand=
  138.                 "FireFMChrome.BrowserOverlay.startArtistStation(event);" />
  139.             <menu id="firefm-mm-station-top-artists"
  140.               label="&firefm.topArtists.label;"
  141.               accesskey="&firefm.topArtists.accesskey;"
  142.               oncommand=
  143.                 "FireFMChrome.BrowserOverlay.startArtistStation(event);" />
  144.             <menu id="firefm-mm-station-friends" label="&firefm.friends.label;"
  145.               accesskey="&firefm.friends.accesskey;"
  146.               oncommand=
  147.                 "FireFMChrome.BrowserOverlay.startUserStation(event);" />
  148.             <menu id="firefm-mm-station-neighbors"
  149.               label="&firefm.neighbors.label;"
  150.               accesskey="&firefm.neighbors.accesskey;"
  151.               oncommand=
  152.                 "FireFMChrome.BrowserOverlay.startUserStation(event);" />
  153.             <menuseparator />
  154.             <menu label="&firefm.onThisPage.label;"
  155.               accesskey="&firefm.onThisPage.accesskey;">
  156.               <menupopup
  157.                 onpopupshowing=
  158.                   "FireFMChrome.BrowserOverlay.loadAudioMicroformats(this);" />
  159.             </menu>
  160.           </menupopup>
  161.         </menu>
  162.         <menuseparator />
  163.         <menuitem id="firefm-play-stop-menu" command="firefm-play-stop-cmd" />
  164.         <menuitem label="&firefm.skip.label;"
  165.           accesskey="&firefm.skip.accesskey;" command="firefm-skip-cmd" />
  166.         <menuseparator />
  167.         <menu label="&firefm.volume.label;"
  168.           accesskey="&firefm.volume.accesskey;"
  169.           observes="firefm-volume-broadcaster">
  170.           <menupopup
  171.             onpopupshowing=
  172.               "FireFMChrome.BrowserOverlay.checkVolumeItem(event);">
  173.             <menuitem label="100" accesskey="0" type="radio" name="firefm-vol"
  174.               oncommand="FireFMChrome.BrowserOverlay.setVolume(100, true);" />
  175.             <menuitem label="90" accesskey="9" type="radio" name="firefm-vol"
  176.               oncommand="FireFMChrome.BrowserOverlay.setVolume(90, true);" />
  177.             <menuitem label="80" accesskey="8" type="radio" name="firefm-vol"
  178.               oncommand="FireFMChrome.BrowserOverlay.setVolume(80, true);" />
  179.             <menuitem label="70" accesskey="7" type="radio" name="firefm-vol"
  180.               oncommand="FireFMChrome.BrowserOverlay.setVolume(70, true);" />
  181.             <menuitem label="60" accesskey="6" type="radio" name="firefm-vol"
  182.               oncommand="FireFMChrome.BrowserOverlay.setVolume(60, true);" />
  183.             <menuitem label="50" accesskey="5" type="radio" name="firefm-vol"
  184.               oncommand="FireFMChrome.BrowserOverlay.setVolume(50, true);" />
  185.             <menuitem label="40" accesskey="4" type="radio" name="firefm-vol"
  186.               oncommand="FireFMChrome.BrowserOverlay.setVolume(40, true);" />
  187.             <menuitem label="30" accesskey="3" type="radio" name="firefm-vol"
  188.               oncommand="FireFMChrome.BrowserOverlay.setVolume(30, true);" />
  189.             <menuitem label="20" accesskey="2" type="radio" name="firefm-vol"
  190.               oncommand="FireFMChrome.BrowserOverlay.setVolume(20, true);" />
  191.             <menuitem label="10" accesskey="1" type="radio" name="firefm-vol"
  192.               oncommand="FireFMChrome.BrowserOverlay.setVolume(10, true);" />
  193.             <menuitem label="&firefm.volume.mute.label;"
  194.               accesskey="&firefm.volume.mute.accesskey;"
  195.               type="radio" name="firefm-vol"
  196.               oncommand="FireFMChrome.BrowserOverlay.setVolume(0, true);" />
  197.           </menupopup>
  198.         </menu>
  199.         <menuseparator />
  200.         <!--<menuitem label="&firefm.share.label;"
  201.           accesskey="&firefm.share.accesskey;" command="firefm-share-cmd" />-->
  202.         <menuitem label="&firefm.tag.label;"
  203.           accesskey="&firefm.tag.accesskey;" command="firefm-tag-cmd" />
  204.         <menuitem label="&firefm.love.label;"
  205.           accesskey="&firefm.love.accesskey;" command="firefm-love-cmd" />
  206.         <menuitem label="&firefm.ban.label;"
  207.           accesskey="&firefm.ban.accesskey;" command="firefm-ban-cmd" />
  208.         <menuseparator />
  209.         <menuitem label="&firefm.video.label;"
  210.           accesskey="&firefm.video.accesskey;" command="firefm-video-cmd" />
  211.         <menuseparator />
  212.         <menuitem command="firefm-preferences-cmd" />
  213.       </menupopup>
  214.     </menu>
  215.   </menupopup>
  216.  
  217.   <toolbarpalette id="BrowserToolbarPalette">
  218.     <toolbarbutton id="firefm-home-button"
  219.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  220.       command="firefm-home-cmd" />
  221.     <toolbarbutton id="firefm-login-logout-button" label="&firefm.login.label;"
  222.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  223.       command="firefm-login-logout-cmd" />
  224.     <toolbarbutton id="firefm-station-button" label="&firefm.station.label;"
  225.       tooltiptext="&firefm.station.tooltip;" type="menu-button"
  226.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  227.       observes="firefm-logged-in-broadcaster"
  228.       oncommand="this.firstChild.openPopup(this, 'after_start');">
  229.       <menupopup>
  230.         <menuitem command="firefm-start-station-cmd" />
  231.         <menu command="firefm-recent-station-cmd">
  232.           <menupopup />
  233.         </menu>
  234.         <menuseparator />
  235.         <menu label="&firefm.myStations.label;"
  236.           accesskey="&firefm.myStations.accesskey;">
  237.             <menupopup>
  238.               <menuitem label="&firefm.myLibrary.label;"
  239.                 accesskey="&firefm.myLibrary.accesskey;"
  240.                 oncommand=
  241.                   "FireFMChrome.BrowserOverlay.startMyLibrary(event);" />
  242.               <menuitem label="&firefm.recommendations.label;"
  243.                 accesskey="&firefm.recommendations.accesskey;"
  244.                 oncommand=
  245.                   "FireFMChrome.BrowserOverlay.startRecommendations(event);" />
  246.               <menuitem label="&firefm.neighborhood.label;"
  247.                 accesskey="&firefm.neighborhood.accesskey;"
  248.                 oncommand=
  249.                   "FireFMChrome.BrowserOverlay.startNeighborhood(event);" />
  250.               <menuitem label="&firefm.lovedTracks.label;"
  251.                 accesskey="&firefm.lovedTracks.accesskey;"
  252.                 oncommand=
  253.                   "FireFMChrome.BrowserOverlay.startLovedTracks(event);" />
  254.             </menupopup>
  255.         </menu>
  256.         <menuseparator />
  257.         <menu id="firefm-tb-station-similar-artists"
  258.           label="&firefm.similarArtists.label;"
  259.           accesskey="&firefm.similarArtists.accesskey;"
  260.           oncommand="FireFMChrome.BrowserOverlay.startArtistStation(event);" />
  261.         <menu id="firefm-tb-station-top-artists"
  262.           label="&firefm.topArtists.label;"
  263.           accesskey="&firefm.topArtists.accesskey;"
  264.           oncommand="FireFMChrome.BrowserOverlay.startArtistStation(event);" />
  265.         <menu id="firefm-tb-station-friends" label="&firefm.friends.label;"
  266.           accesskey="&firefm.friends.accesskey;"
  267.           oncommand="FireFMChrome.BrowserOverlay.startUserStation(event);" />
  268.         <menu id="firefm-tb-station-neighbors" label="&firefm.neighbors.label;"
  269.           accesskey="&firefm.neighbors.accesskey;"
  270.           oncommand="FireFMChrome.BrowserOverlay.startUserStation(event);" />
  271.       </menupopup>
  272.     </toolbarbutton>
  273.     <toolbarbutton id="firefm-play-stop-button" label="&firefm.play.label;"
  274.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  275.       command="firefm-play-stop-cmd" />
  276.     <toolbarbutton id="firefm-skip-button" label="&firefm.skip.label;"
  277.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  278.       command="firefm-skip-cmd" />
  279.     <toolbaritem id="firefm-track-info" title="&firefm.nowPlaying.label;"
  280.       flex="1">
  281.       <fmtrackinfo flex="1" observes="firefm-now-playing-broadcaster" />
  282.     </toolbaritem>
  283.     <toolbarbutton id="firefm-volume-button" label="&firefm.volume.label;"
  284.       tooltiptext="&firefm.volume.tooltip;" type="menu-button"
  285.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  286.       oncommand="FireFMChrome.BrowserOverlay.onVolumeCommand(event);"
  287.       observes="firefm-volume-broadcaster">
  288.       <menupopup>
  289.         <scale id="firefm-volume-scale" min="0" max="100" orient="vertical"
  290.           dir="reverse" observes="firefm-volume-broadcaster"
  291.           onchange="FireFMChrome.BrowserOverlay.setVolume(this.value, true);" />
  292.       </menupopup>
  293.     </toolbarbutton>
  294.     <!--<toolbarbutton id="firefm-share-button"
  295.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  296.       command="firefm-share-cmd" />-->
  297.     <toolbarbutton id="firefm-tag-button"
  298.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  299.       command="firefm-tag-cmd" />
  300.     <toolbarbutton id="firefm-love-button"
  301.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  302.       command="firefm-love-cmd" />
  303.     <toolbarbutton id="firefm-ban-button"
  304.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  305.       command="firefm-ban-cmd" />
  306.     <toolbarbutton id="firefm-video-button"
  307.       class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  308.       command="firefm-video-cmd" />
  309.   </toolbarpalette>
  310.  
  311.   <window id="main-window">
  312.     <stringbundleset id="stringbundleset">
  313.       <stringbundle id="firefm-string-bundle"
  314.         src="chrome://firefm/locale/fmBrowserOverlay.properties" />
  315.     </stringbundleset>
  316.  
  317.     <popupset id="mainPopupSet">
  318.       <popup id="contentAreaContextMenu">
  319.         <menuitem id="firefm-context-menu-start-station"
  320.           insertbefore="context-sep-properties"
  321.           observes="firefm-logged-in-broadcaster"
  322.           image="chrome://firefm/skin/logo16.png"
  323.           oncommand=
  324.             "FireFMChrome.BrowserOverlay.verifyStation(
  325.                this.getAttribute('selection'), FireFM.Station.TYPE_ARTIST);" />
  326.         <menu id="firefm-context-menu-artists"
  327.           insertafter="context-bookmarkpage"
  328.           observes="firefm-logged-in-broadcaster"
  329.           image="chrome://firefm/skin/logo16.png"
  330.           label="&firefm.onThisPage.label;"
  331.           accesskey="&firefm.onThisPage.accesskey;">
  332.           <menupopup
  333.             onpopupshowing=
  334.               "FireFMChrome.BrowserOverlay.loadAudioMicroformats(this);" />
  335.         </menu>
  336.       </popup>
  337.       <popup id="firefm-customize-popup">
  338.         <menuitem label="&viewCustomizeToolbar.label;"
  339.           accesskey="&viewCustomizeToolbar.accesskey;"
  340.           oncommand=
  341.             "FireFMChrome.BrowserOverlay.openPreferences('firefm-appearance-pane');" />
  342.       </popup>
  343.     </popupset>
  344.  
  345.     <broadcasterset id="firefm-broadcasterset">
  346.       <broadcaster id="firefm-volume-broadcaster" value="100" volume="high" />
  347.       <broadcaster id="firefm-logged-in-broadcaster" disabled="true" />
  348.       <broadcaster id="firefm-now-playing-broadcaster"
  349.         message="&firefm.welcomeMessage2.label;" />
  350.       <!-- XXX: these don't work as a command because the target of the event
  351.            is almost always the command and not the menu item! -->
  352.       <broadcaster id="firefm-full-list-broadcaster"
  353.         label="&firefm.feed.fullList.label;"
  354.         accesskey="&firefm.feed.fullList.accesskey;"
  355.         oncommand=
  356.           "FireFMChrome.Feeds.showFullList(event); event.stopPropagation();" />
  357.       <broadcaster id="firefm-open-track-page-broadcaster"
  358.         oncommand="FireFMChrome.BrowserOverlay.openTrackPage(event);"
  359.         onclick="checkForMiddleClick(this, event);" />
  360.     </broadcasterset>
  361.  
  362.     <commandset id="firefm-commandset">
  363.       <command id="firefm-home-cmd" label="&firefm.home.label;"
  364.         tooltiptext="&firefm.home.tooltip;"
  365.         oncommand="FireFMChrome.BrowserOverlay.openHome(event);"
  366.         onclick="checkForMiddleClick(this, event);" />
  367.       <command id="firefm-login-logout-cmd"
  368.         oncommand="FireFMChrome.BrowserOverlay.loginLogout(event);"
  369.         onclick="checkForMiddleClick(this, event);" />
  370.       <command id="firefm-start-station-cmd"
  371.         label="&firefm.startStation.label;"
  372.         accesskey="&firefm.startStation.accesskey;"
  373.         oncommand="FireFMChrome.BrowserOverlay.startStation(event);" />
  374.       <command id="firefm-recent-station-cmd"
  375.         label="&firefm.recentStations.label;"
  376.         accesskey="&firefm.recentStations.accesskey;"
  377.         onpopupshowing="FireFMChrome.BrowserOverlay.fillRecentStations(event);"
  378.         oncommand="FireFMChrome.BrowserOverlay.startRecentStation(event);" />
  379.       <!--<command id="firefm-share-cmd" label="&firefm.share.label;"
  380.         oncommand="FireFMChrome.BrowserOverlay.shareTrack(event);" />-->
  381.       <command id="firefm-tag-cmd" label="&firefm.tag.label;"
  382.         oncommand="FireFMChrome.BrowserOverlay.tagTrack(event);" />
  383.       <command id="firefm-love-cmd" label="&firefm.love.label;"
  384.         oncommand="FireFMChrome.BrowserOverlay.loveTrack(event);" />
  385.       <command id="firefm-ban-cmd" label="&firefm.ban.label;"
  386.         oncommand="FireFMChrome.BrowserOverlay.banTrack(event);" />
  387.       <command id="firefm-video-cmd" label="&firefm.video.label;"
  388.         tooltiptext="&firefm.video.tooltip;"
  389.         oncommand="FireFMChrome.BrowserOverlay.openTrackVideo(event);" />
  390.       <command id="firefm-play-stop-cmd"
  391.         oncommand="FireFMChrome.BrowserOverlay.playStop(event);" />
  392.       <command id="firefm-skip-cmd"
  393.         oncommand="FireFMChrome.BrowserOverlay.skip(event);" />
  394.       <command id="firefm-preferences-cmd"
  395.         oncommand="FireFMChrome.BrowserOverlay.openPreferences();" />
  396.     </commandset>
  397.  
  398.     <keyset id="firefm-keyset">
  399.       <key id="firefm-start-station-key" modifiers="control,shift" key="O"
  400.         command="firefm-start-station-cmd" />
  401.       <key id="firefm-play-stop-key" modifiers="control,shift" key="F"
  402.         command="firefm-play-stop-cmd" />
  403.     </keyset>
  404.  
  405.     <toolbox id="navigator-toolbox">
  406.       <toolbar id="firefm-toolbar" toolbarname="&firefm.toolbarName.label;"
  407.         accesskey="&firefm.toolbar.accesskey;" customizable="true" mode="icons"
  408.         defaulticonsize="small" context="toolbar-context-menu"
  409.         defaultset=
  410.           "firefm-home-button,firefm-login-logout-button,spacer,spring,spring,firefm-station-button,firefm-play-stop-button,firefm-skip-button,firefm-track-info,firefm-volume-button,separator,firefm-tag-button,firefm-love-button,firefm-ban-button,separator,firefm-video-button"
  411.         insertbefore="PersonalToolbar" />
  412.     </toolbox>
  413.   </window>
  414.  
  415.   <statusbar id="status-bar">
  416.     <statusbarpanel id="firefm-statusbar-panel" hidden="true"
  417.       insertbefore="statusbar-updates">
  418.       <toolbar id="firefm-statusbar-toolbar"
  419.         toolbarname="&firefm.toolbarName.label;"
  420.         accesskey="&firefm.toolbar.accesskey;" mode="icons"
  421.         defaulticonsize="small" context="firefm-customize-popup">
  422.         <toolbarbutton id="firefm-status-home-button"
  423.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  424.           command="firefm-home-cmd" />
  425.         <toolbarbutton id="firefm-status-login-logout-button"
  426.           label="&firefm.login.label;"
  427.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  428.           command="firefm-login-logout-cmd" />
  429.         <toolbarbutton id="firefm-status-station-button"
  430.           label="&firefm.station.label;" tooltiptext="&firefm.station.tooltip;"
  431.           type="menu-button"
  432.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  433.           observes="firefm-logged-in-broadcaster"
  434.           oncommand="this.firstChild.openPopup(this, 'after_start');">
  435.           <menupopup>
  436.             <menuitem command="firefm-start-station-cmd" />
  437.             <menu command="firefm-recent-station-cmd">
  438.               <menupopup />
  439.             </menu>
  440.             <menuseparator />
  441.             <menu label="&firefm.myStations.label;"
  442.               accesskey="&firefm.myStations.accesskey;">
  443.               <menupopup>
  444.                 <menuitem label="&firefm.myLibrary.label;"
  445.                   accesskey="&firefm.myLibrary.accesskey;"
  446.                   oncommand=
  447.                     "FireFMChrome.BrowserOverlay.startMyLibrary(event);" />
  448.                 <menuitem label="&firefm.recommendations.label;"
  449.                   accesskey="&firefm.recommendations.accesskey;"
  450.                   oncommand=
  451.                     "FireFMChrome.BrowserOverlay.startRecommendations(event);" />
  452.                 <menuitem label="&firefm.neighborhood.label;"
  453.                   accesskey="&firefm.neighborhood.accesskey;"
  454.                   oncommand=
  455.                     "FireFMChrome.BrowserOverlay.startNeighborhood(event);" />
  456.                 <menuitem label="&firefm.lovedTracks.label;"
  457.                   accesskey="&firefm.lovedTracks.accesskey;"
  458.                   oncommand=
  459.                     "FireFMChrome.BrowserOverlay.startLovedTracks(event);" />
  460.               </menupopup>
  461.             </menu>
  462.             <menuseparator />
  463.             <menu id="firefm-status-tb-station-similar-artists"
  464.               label="&firefm.similarArtists.label;"
  465.               accesskey="&firefm.similarArtists.accesskey;"
  466.               oncommand=
  467.                 "FireFMChrome.BrowserOverlay.startArtistStation(event);" />
  468.             <menu id="firefm-status-tb-station-top-artists"
  469.               label="&firefm.topArtists.label;"
  470.               accesskey="&firefm.topArtists.accesskey;"
  471.               oncommand=
  472.                 "FireFMChrome.BrowserOverlay.startArtistStation(event);" />
  473.             <menu id="firefm-status-tb-station-friends"
  474.               label="&firefm.friends.label;"
  475.               accesskey="&firefm.friends.accesskey;"
  476.               oncommand=
  477.                 "FireFMChrome.BrowserOverlay.startUserStation(event);" />
  478.             <menu id="firefm-status-tb-station-neighbors"
  479.               label="&firefm.neighbors.label;"
  480.               accesskey="&firefm.neighbors.accesskey;"
  481.               oncommand=
  482.                 "FireFMChrome.BrowserOverlay.startUserStation(event);" />
  483.           </menupopup>
  484.         </toolbarbutton>
  485.         <toolbarbutton id="firefm-status-play-stop-button"
  486.           label="&firefm.play.label;"
  487.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  488.           command="firefm-play-stop-cmd" />
  489.         <toolbarbutton id="firefm-status-skip-button"
  490.           label="&firefm.skip.label;"
  491.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  492.           command="firefm-skip-cmd" />
  493.         <toolbaritem id="firefm-status-track-info"
  494.           title="&firefm.nowPlaying.label;" flex="1">
  495.           <fmtrackinfo flex="1" observes="firefm-now-playing-broadcaster" />
  496.         </toolbaritem>
  497.         <toolbarbutton id="firefm-status-volume-button"
  498.           label="&firefm.volume.label;" tooltiptext="&firefm.volume.tooltip;"
  499.           type="menu-button"
  500.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  501.           oncommand="FireFMChrome.BrowserOverlay.onVolumeCommand(event);"
  502.           observes="firefm-volume-broadcaster">
  503.           <menupopup>
  504.             <scale id="firefm-status-volume-scale" min="0" max="100"
  505.               orient="vertical" dir="reverse"
  506.               observes="firefm-volume-broadcaster"
  507.               onchange="FireFMChrome.BrowserOverlay.setVolume(this.value, true);" />
  508.           </menupopup>
  509.         </toolbarbutton>
  510.         <!--<toolbarbutton id="firefm-status-share-button"
  511.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  512.           command="firefm-share-cmd" />-->
  513.         <toolbarbutton id="firefm-status-tag-button"
  514.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  515.           command="firefm-tag-cmd" />
  516.         <toolbarbutton id="firefm-status-love-button"
  517.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  518.           command="firefm-love-cmd" />
  519.         <toolbarbutton id="firefm-status-ban-button"
  520.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  521.           command="firefm-ban-cmd" />
  522.         <toolbarbutton id="firefm-status-video-button"
  523.           class="toolbarbutton-1 chromeclass-toolbar-additional fm-button"
  524.           command="firefm-video-cmd" />
  525.       </toolbar>
  526.     </statusbarpanel>
  527.   </statusbar>
  528.  
  529. </overlay>
  530.